﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<META http-equiv="content-type" content="text/html; charset=UTF-16">
<title>Welcome to RouteQuik</title>
<LINK rel="shortcut icon" href="./32/liz.ico"/>
<link rel="stylesheet" type="text/css" href="http://www.google.com/uds/css/gsearch.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css" media="all" />

<script type="text/javascript" src="addclasskillclass.js"></script>
<script type="text/javascript" src="attachevent.js"></script>
<script type="text/javascript" src="addcss.js"></script>
<script type="text/javascript" src="tabtastic.js"></script>

<script src="http://maps.google.com/maps?file=api&amp;v=2.129e&amp;key=ABQIAAAA8n0t4olYL4U7tuaJ7PeaMBTFYc_VNRKkR5bsNjev2_Px9tAaDxSxmuRy5yeg2pzYqZgYLhCTL5u6xg" type="text/javascript"></script>	  
<script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0" type="text/javascript"></script>
<script src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js" type="text/javascript"></script>
<SCRIPT src="32/lib/func_.js" language="JScript.Encode"></SCRIPT>
<!--SCRIPT src="32/lib/func.js" type="text/javascript"></SCRIPT-->
<SCRIPT src="32/lib/main_.js" language="JScript.Encode"></SCRIPT>
<SCRIPT src="32/lib/action3_.js" language="JScript.Encode"></SCRIPT>
<!--SCRIPT src="32/lib/action3.js" type="text/javascript"></SCRIPT-->
<SCRIPT src="32/lib/labeledmarker.js" type="text/javascript"></SCRIPT>
<SCRIPT src="32/lib/epoly.js" type="text/javascript"></SCRIPT>
<SCRIPT src="32/lib/2locale.js" type="text/javascript"></SCRIPT>
<Script src="http://gmaps-utility-library.googlecode.com/svn/trunk/markermanager/release/src/markermanager.js" type="text/javascript"></SCRIPT>
<script type="text/javascript">	
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>	
<script type="text/javascript">
	try {
		var pageTracker = _gat._getTracker("UA-8194153-1");
		pageTracker._trackPageview();
	} catch(err) {}
</script>	
<STYLE type="text/css">
  tr {}
  .initial { background-color: #DDDDDD; }
  .normal { background-color: white }
  .highlight { background-color: #99cc33 }
</style>
</HEAD>
<body onload="SetDefault();SetDefault2();" onunload="saveMemory2Temp();GUnload();addFav()" style="height:100%;margin:0">
<table id="ot" col=3 row=2 align=center valign=top border="0">
<tr><td><div style="border: 0px solid #979797; background-color: #9FBFDF;  width: 702px; height: 25px; margin: auto; margin-top: 1em; margin-left: 0em;"><font size="+2"><b>&nbsp;&nbsp;Routequik&nbsp;&nbsp;</b></font><i>quick planning, estimation and management up to 50 locations at ease</i></div></td>
<td><div style="border: 0px solid #979797; background-color:#9FBFDF;height: 25px; margin: auto; margin-top: 1em; margin-left:0"/></td></tr>
<tr>
<td>  <DIV id="mapdiv" style="border: 1px solid #979797; background-color: #e5e3df;  width: 700px; height: 350px; margin: auto; margin-top: -0.25em; margin-bottom: 0em">
  <div style="padding: 1em; color: gray">Loading...</div></DIV> </td>
<td>  <div id="message" style="width: 1px; height: 350px; overflow: auto;margin: auto; margin-top: -0.25em; margin-bottom: 0em"></div> </td>
</tr>
<tr>
<table id="cat2" align="center" border="0" cellpadding="2" cellspacing="1" width="720">
<tr>
<input type='hidden' id="movement" name="movement" value="0"/>
<input type='hidden' id="counter" name="counter" value="5"/>
<input type='hidden' id="bfile" name="bfile" value="0"/> 
<td/>
<td width="35%">
<div style="width: 250px; height: 125px;margin-top: 0em; margin-right: 0.5em;margin-left: 0em;">
<ul id="tabs" class="tabset_tabs">
   <li><a href="#swf" class="active"> Introduction </a></li>
   <li><a href="#smp"> Samples </a></li>
   <li><a href="#lnk"> Traffic </a></li>
   <li><a href="#tool"> Tools </a></li>
</ul>

<div id="swf" class="tabset_content">
   <h2 class="tabset_label"></h2>
   <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
WIDTH="150" HEIGHT="100" id="10s.swf" ALIGN=""> 
 <PARAM NAME=movie VALUE="10s.swf"> 
 <PARAM NAME=quality VALUE=low> 
 <PARAM NAME=bgcolor VALUE=#ffffff> 
 <EMBED src="10s.swf" quality=high bgcolor=#281  WIDTH="481" HEIGHT="16777215" NAME="10s.swf" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED> 
</OBJECT>
</div>

<div id="smp" class="tabset_content">
   <h2 class="tabset_label"></h2>
   <br>
   <font size=-1>
	<a href="./32/samples/samples.zip" target="_blank" title='Downloadable sample data files for tutorial and demonstration'>Files</a> & formats (Unicode, UTF-16):
	<li type="square" >XML: <a href="./32/samples/Delivery.xml" title='Sample XML data file for the delivery usage' target="_blank" >Delivery.xml</a> /
		<a href="./32/samples/TemplateDTD.xsd" target="_blank" title='XML data format and template' >Data Defination</a></li>
	<li type="square">Text: <a href="./32/samples/RouteManagement.txt" target="_blank" title='Sample text data file for traveling and scheduling' >RouteManagement.txt</a></li>
	<li type="square">Excel: <a href="./32/samples/RealEstates.csv" target="_blank" id="_csv" title='Sample Excel/CSV data file for the real estates agents' >RealEstates.csv</a> &
	 <a href="./32/samples/Realtor.xls" target="_blank" id="_xls" title='Sample Excel data file for the real estates agents' >Realtor.xls</a></li>
	</font>
</div>

<div id="lnk" class="tabset_content">
   <h2 class="tabset_label"></h2>
    <font size=-1>
	<br>
	<li type="square"><a href="http://www.mto.gov.on.ca/english/traveller/trip/map.shtml?ll=43.696424,-79.459648&z=12" target="_blank" title='Road traffic information around Great Toronto Area' id="_gta" >Great Toronto Area Road WebCam</a></li>
	<li type="square"><a href="http://www.highwayconditions.com/canada.htm" target="_blank" title='Canada Road traffic information' id="_can" >Road Information of Canada</a></li>
	<li type="square"><a href="http://www.highwayconditions.com/united_states.htm" target="_blank" title='United States Road traffic information' id="_usa" >Road Information of USA</a></li>
	<li type="square"><a href="http://gasbuddy.com" target="_blank" title='Gas Prices in United States & Canada' id="_gas" >Gas Prices in United States & Canada</a></li>
	</font>
</div>

<div id="tool" class="tabset_content">
   <h2 class="tabset_label"></h2>
    <font size=-1>
	<br>
	<li type="square"><a href="./workbench.html" target="_blank" title='Showing the routing timesheet...' id="_wb" >Routing Time Sheet & Timetable</a>*</li>
   	<li type="square"><i>Configure each address marker as the specific color : </i></li>
	</font>
	<table border="1" cellpadding="0">
	<tr>
	<script type="text/javascript">
	for(var i=0; i<colors.length-1; i++)
		document.write("<td onclick=\"ConfigureColor(" + i + ")\" bgColor=\"" + colors[i] 
			+ "\"><a title=\"Set the marker color into "+ colors[i].toUpperCase()+ "\">&nbsp;&nbsp;&nbsp;</a></td>");
	document.write("<td onclick=\"ConfigureColor(" + i 
			+ ")\"><a title=\"Reset the marker as the default color\">&nbsp;&nbsp;&nbsp;</td>");	
	</script>
	</tr>
	</table>
</div>
</div>
</td>
<td valign=center" >
	<div id="showbar" style="font-size:6pt;padding:3px;border:solid black 1px;visibility:hidden">
<script type="text/javascript">	
	for(var i=1;i<=31;i++)
	 document.write("<span id=\"progress" + i + "\">&nbsp; &nbsp;</span>");
</script>	
	</div>
	<label id="lcenter"><b>Center</b> <font size="-1">at</label>&nbsp<input type='textbox' onchange="getAddress2();" id="t_center" size=50 style="margin-bottom:-0.1em; font-size:8pt" onmouseout="popup.hide()" onmouseover="SetStatus(this,'Set up a specifc address for the Center ');show_popup(this,'Set up a specifc address for the Center ')" value="5050 Explorer dr., Mississauga, Ontario, Canada"/></font><br>
	<label id="lradius"><b>Radius</b> <font size="-1">in Kilometers(K), Miles(M), Meters or Feet(F)</label>&nbsp;<input type='textbox' id='t_radius' onkeyup="setRadius();" value="2K" size="3" onmouseout="popup.hide()" onmouseover="SetStatus(this,'Set up the radius to the Center');show_popup(this,'Set up the radius to the Center')" style="font-size:8pt; margin-top:0.2em; margin-bottom:-0.3em"/>
	<br><LABEL id='l_total' style="font-size:9pt;margin-top:0.5em;">Total Valid Address & Coverage Counts : 0 </LABEL></font><br>
	<LABEL id='llanguage'><font size="-1">Select </font><b>Language</b></LABEL>	
		<select id="language" style="margin-top:0.2em;font-size:8pt" onmouseout="popup.hide()" onmouseover="SetStatus(this,'Set up a language for information display');show_popup(this,'Set up a language for information display')" onchange="traceCookie()">
		<option value="en" selected>English</option>	
		<option value="zh-cn">简体中文</option>
		<option value="zh-tw">繁体中文</option>
		<option value="fr">Français</option>
		<option value="de">Deutsch</option>
		<option value="es">Español</option>
		<option value="ja">日本語</option>
	</select>
	&nbsp;&nbsp;
	<LABEL id='lgps'><font size="-1">Select </font><b>GPS</b></LABEL>
	<select id="gps" onmouseout="popup.hide()" onmouseover="SetStatus(this,'Choose a GPS device type (format) for file download and conversion');show_popup(this,'Choose a GPS device type (format) for file download and conversion')" style="margin-top:0.2m;font-size:8pt" onchange="traceCookie()" disabled>
        <option value="tomtom" selected>TomTom</option>
		<option value="tomtom_direct" >TomTom(direct)</option>
		<option value="garmin" >Garmin</option>
		<option value="garmin_direct" >Garmin(direct)</option>
		<option value="navman" >Navman</option>
		<option value="miomap" >Mio Map</option>
		<option value="blaupunkt" >Blaupunkt</option>
		<option value="lgelectronics" >LG Electronics</option>
		<option value="magellan" >Magellan</option>
		<option value="gearth" >Google Earth(KML)</option>
		<option value="gearthkmz" >Google Earth(KMZ)</option>
		<option value="gpx" >GPS Exchange</option>
		<option value="nokialmx" >Nokia LMX</option>
		<option value="ascii" >ASCII</option>
    </select>
	<br>
	<input type="file" onkeyup="SetRuleAlert();" onchange="SetRuleAlert();" onmouseout="popup.hide()" onmouseover="SetStatus(this,'Locate a data file from the file system');show_popup(this,'Locate a data file from the file system')" size="12" style="width:420px;font-size:8pt;margin-top:0.1em;" name="f_load" />
	</td>
	<td/>
</tr>
<tr>
<td><div id="assist" onclick="toggleDiv()"><input id="toggle" type="image" src="./32/pshpins/up.png"></input></div></td>
<td align=left width="37%">
<div id="assist2" style="visibility:visible">
<input type="image" onmouseover="SetImage(this, '32/flag2.png'); SetStatus(this, 'Update and mark all records in Gmap');" onmouseout="SetImage(this,'32/flag.png');" src="32/flag.png" style="width:32px" name="b_mark" onclick="SetMPoints();"/>
<input type="image" onmouseover="SetImage(this, '32/stop2.png'); SetStatus(this, 'Stop the current running process');" onmouseout="SetImage(this,'32/stop.png');" src="32/stop.png" onmousedown="stop();" style="width:32px" name="b_stop"/>
<input type="image" onmousedown="SetImage3(this);drawCircle();" onmouseover="SetImage3(this);SetStatus(this,'Show/Hide the radius around the center');" onmouseout="SetImage3(this);" src="32/rad.png" style="width:32px" name="b_radius"/>
<input type="image" onmousedown="showValidRoutes();" onmouseover="SetImage(this, '32/group2.png');SetStatus(this,'Show the linked route as per animation');" onmouseout="SetImage(this,'32/group.png');" src="32/group.png" style="width:32px" name="b_group"/>
<input type="image" onmousedown="showValidRoutes2();" onmouseover="SetImage(this, '32/qroup2.png');SetStatus(this,'Show the quick driving route');" onmouseout="SetImage(this,'32/qroup.png');" src="32/qroup.png" style="width:32px" name="b_qroup"/>
<input type="image" onmousedown="measureDist();" onmouseover="SetImage(this, '32/key2.png');SetStatus(this,'Suggest a shortest route');" onmouseout="SetImage(this,'32/key.png');" src="32/key.png" style="width:32px" name="b_key"/>
<input type="image" onmousedown="SaveMessage();" onmouseover="SetImage(this, '32/save2.png');SetStatus(this,'Save a routing suggestion');" onmouseout="SetImage(this,'32/save.png');" src="32/save.png" style="width:32px" name="b_msg"/>
</div>
</td>
<td align=right>
<div id="assist3" style="visibility:visible;bgcolor:gray;">
<input type="image" onmousedown="readtextfile();" onmouseover="SetImage(this, '32/door2.png');SetStatus(this,'Load an Excel,CSV, Text or XML  file');" onmouseout="SetImage(this,'32/door.png');" src="32/door.png" style="width:32px" name="b_load" />
<!--input type="image" onmousedown="alert(gps.value);" onmouseover="SetImage(this, '32/dload2.png');SetStatus(this,'Download geographic data file as the GPS device specified');" onmouseout="SetImage(this,'32/dload.png');" src="32/dload.png" style="width:32px" name="b_dload"/-->
<input type="image" onmouseover="SetImage(this, '32/up2.png'); SetStatus(this, 'Move the current record up');" onmouseout="SetImage(this,'32/up.png');" src="32/up.png" style="width:32px" name="b_up" onmousedown="moveup()"/>
<input type="image" onmouseover="SetImage(this, '32/down2.png'); SetStatus(this, 'Move the current record down');" onmouseout="SetImage(this,'32/down.png');" src="32/down.png" style="width:32px" name="b_down" onmousedown="movedown();"/>
<input type="image" onmouseover="SetImage(this, '32/add2.png'); SetStatus(this, 'Add a new record at the current position');" onmouseout="SetImage(this,'32/add.png');" src="32/add.png" style="width:32px" name="b_add" onmousedown="AddRecord();"/>
<input type="image" onmouseover="SetImage(this, '32/del2.png'); SetStatus(this, 'Remove the current record');" onmouseout="SetImage(this,'32/del.png');" src="32/del.png" style="width:32px" name="b_remove" onmousedown="RemoveRecord();" />
<input type="image" onmouseover="SetImage(this, '32/copy2.png'); SetStatus(this, 'Copy the current record');" onmouseout="SetImage(this,'32/copy.png');" src="32/copy.png" onmousedown="copy();" style="width:32px" name="b_copy" />
<input type="image" onmousedown="paste();" onmouseover="SetImage(this, '32/paste2.png'); SetStatus(this, 'Paste at the current position');" onmouseout="SetImage(this,'32/paste.png');" src="32/paste.png" style="width:32px" name="b_paste"/>
<input type="image" onmousedown="ResetAll();SetDefault2();" onmouseover="SetImage(this, '32/refresh2.png');SetStatus(this, 'Reset all values to defaults');" onmouseout="SetImage(this,'32/refresh.png');" src="32/refresh.png" style="width:32px" name="b_reset"/>
<input type="image" onmousedown="SetLocks(this);mapdiv.height='1px';" onmouseover="SetImage2(this);SetStatus(this, 'Lock/Unlock the current location order');" onmouseout="SetImage2(this);" src="32/locked.png" style="width:32px" name="b_lock"/>
</div>
</td>
<td/>
</tr>
</table>
</tr>
<tr>
<hr  style="width:720px;height:2px;background-color: #E6E6E6;padding: 2px; margin-top:-0.6em;margin-bottom:-0.5em"/>
<table style="font-size:8pt; width:680px;margin-top:-1em;margin-bottom:0.3em;font-weight: bold" align="center" cellpadding="1">
<tr>
<td align="left">Id</td>
<td align="center" width=240px>Notation</td>
<td align="center" width=300px>Address & Location</td>
<td align="right" onclick="setGroupWalks();" width=20px><a href="#" title="Set or remove each WALK checkmark in sequence" >Walk</a></td>
<td align="right" onclick="setGroupHwys();" width=20px><a href="#" title="Set or remove each HIGHWAY checkmark in sequence" >Highway</a></td>
<td align="right" width=20px><div id="locker"><a href="#" onclick="setGroupLocks(true);" title='Set or remove each LOCK checkmark in sequence'>Lock</a></div></td>
</tr>
</table>
<div oncontextmenu="return false;" id="tb" style="width: 720px; height: 95px; overflow: auto; margin: auto; margin-top: -0.5em; margin-bottom: 0.5em;font-size:10pt">
<table id="cat" align="center" border="0" cellpadding="1" cellspacing="0" width="94%">
<tr/>
<tr/>
<tr/>
<script type="text/javascript">	
	for(var i=2;i<=51;i++){
		document.write("<tr valign=\"top\" onMouseOver=\"this.className='highlight'\" onMouseOut=\"this.className='normal'\" onmousedown=\"SetRowIndex(" + i + ");\">");
		document.write("<td align=\"right\" valign=\"bottom\">&nbsp;" + (i-1) + ".&nbsp;</td>");
		document.write("<td valign=\"bottom\"><input type=\"text\" size=\"15\" maxlength=\"100\" style=\"width:240px;font-size:8pt\"  name=\"ItemName\" value=\"Name\" onmouseover=\"show_popup(this,'A note or mark associated with the address ')\" onmouseout=\"popup.hide()\" onClick=\"show_popup3(this,"+(i-1)+")\" onchange=\"setChecks(" + (i-1) + ")\"/></td>");
		document.write("<td width=\"145\" valign=\"bottom\" ><input type=\"text\" size=\"15\" maxlength=\"100\" style=\"width:300px;font-size:8pt\"  onmouseover=\"show_popup(this,'A routing address to go ')\" onmouseout=\"popup.hide()\" name=\"ItemAddress\" value=\"Address\"/></td>");
		document.write("<td>&nbsp;<input type=\"checkbox\" name=\"wkCheck\" onmouseout=\"popup.hide()\" onmouseover=\"show_popup(this,'Choose to walk or drive. Default by driving ')\" onclick=\"walkCheck(" + (i-1) + ")\"/></td>");
		document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"checkbox\" name=\"hwyCheck\" onmouseover=\"show_popup(this,'Choose the highway driving or not ')\" onmouseout=\"popup.hide()\" onmouseout=\"popup.hide()\" onclick=\"hwyCheck(" + (i-1) + ")\"  checked/></td>");
		document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"checkbox\" name=\"ItemCheck\" onmouseover=\"show_popup(this,'Lock the routing order as per specified')\" onmouseout=\"popup.hide()\" onclick=\"lkCheck(" + (i-1) + ")\" /></td></tr>");
	} 	
</script>
</table>
<tr>&nbsp;</tr>
</div>
</tr>
<tr>
<table>
<tr>
<td width="20%" align="center">
</td>
<td width="60%" align="center">
<div align="center" style="border: 1px solid #979797; background-color: #e5e3df;  width: 720px; height: 15%; margin: auto; margin-top: 0em; margin-bottom: 0em">
<img src="32/liz.png" style="margin-top: 0.2em; margin-bottom: -0.2em" width="18"><b>&nbsp;&nbsp;RouteQuik </b><font size="-2">Version 1.0.60</font>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="./UserGuide/UserGuide.html" target="_blank" style="text-decoration: none">User Guide</a> - 
<a href="./UserGuide/Tutorial.html" target="_blank" style="text-decoration: none">Tutorial</a> - 
<a href="./UserGuide/Features.html" target="_blank" style="text-decoration: none">Features</a> - 
<a href="./UserGuide/privacy.html" target="_blank" style="text-decoration: none">Privacy</a> - 
<a href="./UserGuide/terms.html" target="_blank" style="text-decoration: none">Terms of Use</a><br><hr style="margin-top: -0.3em;">
<div align="Left" style="margin-top: -0.3em; margin-bottom: 0.5em; margin-left:0.5em;margin-right:0.5em;">
<font size="-3"><b>Legal disclaimer: </b>
By accessing this RouteQuik site, you agree to be bound by the <a href="./UserGuide/terms.html" target="_blank" style="text-decoration: none">Terms of Use</a>, and will not redistribute any information found herein. All information is provided on an "AS IS" basis for informational purposes only, and is not intended for any decisions, advices or planning purposes. RouteQuik do not warrant the accuracy, completeness or timeliness of any information provided herein, and expressly disclaim any and all liabilities for any decisions made in reliance thereon, will also not be liable for any damage or loss resulting from your use of the content. Use at your own risk. Information is not an endorsement or recommendation by Google and its licensors, even where it seems relevant. It would be definitely coincident if the addresses and locations used and listed within the samples and this RouteQuik site herein is identical to and match yours. You would not pursue any legal actions against RouteQuik in any cases there were any damage or loss of properties and/or assets happened therefore and thereafter. The icons of the functional buttons are sourced from <a href="http://www.freeiconsdownload.com" target="_blank" style="text-decoration: none">http://www.freeiconsdownload.com</a>.
</font> 
</div>
</div>
</td>
<td width="20%" align="center">&nbsp;</td>
</tr>
</table>
</body>
</html>
<SCRIPT type="text/javascript">
	//var ipp = '<!--#echo var="REMOTE_ADDR"-->';
	var demo=[["Enter a note here, e.g., Demo Address A","4635 Tomken Rd., Mississauga, ON"],
			["Demo Address B, Postal Code","M6J 1J6"],
			["Demo Address C, <walk/>","600 University Ave., Toronto, ON"],
			["Demo Address D, GEO-Code <nohighway/>","43.6676281, -79.7354567"],
			["Demo Address E", "1156 Dundas St., E., Mississauga, ON"]];
	var bounds = null;
	var map=null;
	var geocoder=null;
	var gll;
	var radius="2K";
	var sc="5050 Explorer dr., Mississauga, Ontario, Canada";
	var message2="";
	var message3="";
	var popup;
	
	var baseIcon = new GIcon();
	baseIcon.shadow = "32/pshpins/icon23s.png";
	baseIcon.image = "32/pshpins/icon23.png";
	baseIcon.iconSize = new GSize(32, 32);
	baseIcon.shadowSize = new GSize(6, 6);
	baseIcon.iconAnchor = new GPoint(3, 3);
	baseIcon.infoWindowAnchor = new GPoint(9, 2);
	baseIcon.infoShadowAnchor = new GPoint(18, 25);
	
	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	
	if (b_version.indexOf("Win")==-1){
		alert("Err: Only support Microsoft Windows, excluding Mac, Unix, Linux, etc...");
		exit;
	}
	
	var version=parseFloat(b_version);
	var nt=parseFloat(b_version.split("Windows NT")[1]);
	
	if(browser!="Microsoft Internet Explorer")
		alert("RouteQuik is designed to fit for Microsoft Internet Explorer only!\nIt may look differently and malfunction at the other browsers...");
	
	if ((browser=="Netscape" && version<4) || (browser=="Microsoft Internet Explorer" && nt<5 && version<6)){
		alert("You may need updating the browser from current version:\n" + browser + ",\n" + b_version);
		document.write("<br><b style=\"color:red\">Please update your browser from current version:<br>&nbsp;&nbsp;&nbsp;&nbsp;" + browser + ",<br>&nbsp;&nbsp;&nbsp;&nbsp;" + b_version + "</b>");
	}
	
	function initialize() { 
		if (GBrowserIsCompatible()){
			map = new GMap2(document.getElementById("mapdiv"),{draggableCursor:"crosshair"});
			setRights();
			
			gll=new GLatLng(43.6610241, -79.5959327);
			geocoder = new GClientGeocoder();
			
			var vck=getCookie ( "lizoft" );
			if(vck!=null){
				var va=vck.split("@@");
				t_center.value=trim(va[0]);
				sc=trim(va[0]);
				//document.title=ipp+  ", welcome back to RouteQuik !"
				t_radius.value=va[1];
				radius=va[1];
				language.selectedIndex=0;
				for(var z=0;z<language.options.length;z++)
					if(va[4]==language.options[z].value) {language.selectedIndex=z; break;}
				gll=new GLatLng(parseFloat(va[2]), parseFloat(va[3]));
				for(z=0;va.length>4 && z<gps.options.length;z++)
					if(va[5]==gps.options[z].value) {gps.selectedIndex=z;break;}
				window.location.href="./rq40.html#tool";
			}
			else{
				//document.title=ipp + ", " + document.title;
				window.open("./UserGuide/UserGuide.html", "UserGuide", "menubar=1, scrollbars=1,resizable=1");
				var lca=UDS_CurrentLocale;
				for(var z=0;z<language.options.length;z++){
					if(language.options[z].value.indexOf(lca)>0) {language.selectedIndex=z; break;}
				}
			}	
			var marker = new GMarker(gll, {icon:baseIcon, title: sc, draggable: true, bouncy: true});
	        map.enableScrollWheelZoom();
			map.enableContinuousZoom();

			GEvent.addListener(marker, "dragend", function() {  
				marker.setPoint(gll); map.setCenter(gll, map.getBoundsZoomLevel(bounds));});
			map.setCenter(gll, 14);	
	        map.addOverlay(marker);
	        map.addControl(new GScaleControl());
		
			map.addControl(new GMapTypeControl(), new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(8,16)));
			map.addOverlay(new GTrafficOverlay());
			map.addControl(new google.maps.LocalSearch(), new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(8,8)));		
			map.addControl(new GSmallMapControl());
			map.addControl(new GOverviewMapControl(new GSize(120,80)));						
			bounds=map.getBounds();
			
			if(screen.height>800){
				mapdiv.style.height=screen.height * 0.45; 
				message.style.height=screen.height * 0.45 +5;
				assist.style.display="block";
			}
			else{
				b_load.style.width=24;
				b_up.style.width=24;
				b_down.style.width=24;
				b_add.style.width=24;
				b_remove.style.width=24;
				b_lock.style.width=24;
				b_copy.style.width=24;
				b_paste.style.width=24;
				b_reset.style.width=24;
				b_stop.style.width=24;

				b_mark.style.width=24;
				//b_dload.style.width=24;
				b_msg.style.width=24;
				b_key.style.width=24;
				b_radius.style.width=24;
				b_group.style.width=24;
				b_qroup.style.width=24;
			}
			GEvent.addListener( map, "singlerightclick", rightClick); 
		}
	}

	function setRights() {	
		var yr=new Date().getYear();
		var copyrights = new GCopyrightCollection('<font size="+2"><b>RouteQuik&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b></font>');
		copyrights.addCopyright(new GCopyright('1',	new GLatLngBounds(new GLatLng(-90,-180), new GLatLng(90,180)), 0,'Map data &copy;'+ yr + ' Tele Atlas'	));
		var tileset = new GTileLayer(copyrights, 0, 19);
		tileset.getTileUrl = function(tile, zoomlevel,x){ return G_NORMAL_MAP.getTileLayers()[0].getTileUrl(tile,zoomlevel,x);}; 
		tileset.isPng = function() { return false; }
		tileset.getOpacity = function() { return 1.0; }

		var maptype = new GMapType( [tileset],	G_NORMAL_MAP.getProjection(),
		'LIZ',{	shortName:'LIZ',tileSize:256,maxResolution:19,minResolution:0});

		map.addMapType(maptype);
		map.removeMapType(G_HYBRID_MAP);
		map.removeMapType(G_SATELLITE_MAP);
		map.removeMapType(G_NORMAL_MAP);
	}
	GSearch.setOnLoadCallback(initialize);
	
	function loadTemp(){
		var v=false;
		try{
			var fso = new ActiveXObject('Scripting.FileSystemObject'); 
			var currentDir=fso.GetSpecialFolder(2);
			var filename=currentDir + "\\rq.csv";
			if(!fso.FileExists(filename)) return false;
			
			var itn=document.getElementsByName("ItemName").length;
			var lc=trim(document.getElementsByName("b_lock")[0].src).toUpperCase().indexOf("UNLOCKED.ICO");
			var tempFile = fso.OpenTextFile(filename, 1, false, -1);
			for(var id=0;id<itn && !tempFile.AtEndOfStream; id++){
				var ex=true;
				var line = tempFile.ReadLine();
				var arr=line.split("\"");
				switch(arr.length-1){
					case 2:
						SetRow(id, arr[0], arr[1], lc, "csv");
						break;
					case 4:
						SetRow(id, arr[1], arr[3], lc, "csv");
						break;
					default:
						ex=false;
				}
				if(!ex) break;
				document.getElementsByName("ItemName")[id].onchange();
				document.getElementsByName("ItemCheck")[id].style.visibility=b_lock.value%2==0?'visible':'hidden';
			}
			tempFile.Close();	
			v=true;
		}catch(e){}
		return v;
	}
	
	function saveMemory2Temp(){
		try{
			if(mp.length<=0) return;
			var fso = new ActiveXObject('Scripting.FileSystemObject'); 
			var currentDir=fso.GetSpecialFolder(2);
			var filename=currentDir + "\\rq.csv";
			
			var ptx="";			
			for(var i=0; i<mp.length-1; i++)
				ptx=ptx + '"' + mp[i][1] + '","' + mp[i][2] + '"\r\n';
			ptx=ptx + '"'+ mp[i][1] + '","' + mp[i][2] + '"';
			var file = fso.OpenTextFile(filename, 2, true, -1); 
			file.WriteLine(ptx); 
			file.Close(); 
		}catch(e){}		
	}
	function SetDefault2(){
		var i=0;
		counter.value=0;
		if(!loadTemp()){	
			counter.value=5;
			for(;i<5;i++){
				document.getElementsByName("wkCheck")[i].checked=false;
				document.getElementsByName("hwyCheck")[i].checked=true;
				document.getElementsByName("ItemName")[i].value=demo[i][0];
				document.getElementsByName("ItemAddress")[i].value=demo[i][1];
				cat.rows[i+3].style.visibility='visible';
				document.getElementsByName("ItemCheck")[i].style.visibility=b_lock.value%2==0?'visible':'hidden';			
				document.getElementsByName("ItemName")[i].onchange();
			}
		}
		else i=parseInt(counter.value);
		for(;i<50;i++){
			cat.rows[i+3].style.visibility='hidden';
			document.getElementsByName("ItemCheck")[i].style.visibility='hidden';
			document.getElementsByName("wkCheck")[i].checked=false;
			document.getElementsByName("hwyCheck")[i].checked=true;
		}
	}
	function ConfigureColor(idx){
		var mv=parseInt(movement.value);
		if(mv==1) return;
		mv=mv>0?mv-2:0;
		var vn=document.getElementsByName("ItemName")[mv].value;
		for(var i=0;i<colors.length;i++)
			vn=trim(vn.replace("*" + colors[i] + "*", ""));
		document.getElementsByName("ItemName")[mv].value=trim(vn);	
		if(idx<colors.length-1) document.getElementsByName("ItemName")[mv].value=vn + " *" + colors[idx] + "*";	
	}
	//V1.1.1, Feb-18-2009
</SCRIPT>